<template>
  <div id="main-sidebar">
    <profile-box />
    <sider-bar-items :path="path" @setDialogVisible="setDialogVisible()" />
  </div>
</template>

<script>
import ProfileBox from "@/components/ProfileBox";
import SiderBarItems from "@/components/SiderBarItems";
export default {
  props: ["path"],
  components: {
    ProfileBox,
    SiderBarItems,
  },
  methods: {
    setDialogVisible() {
      this.$emit("setDialogVisible");
    },
  },
};
</script>

<style lang="scss" scoped>
@import "@/assets/global";
#main-sidebar {
  position: relative;
  height: 100vh;
  width: 25vh;
  min-height: $minHgt;
  min-width: calc($minHgt/4);
  background-color: $theme;
  z-index: 999;
}
</style>
